<?php
function view_aboutus_list($aboutus_list)
{
	$list = "<table class='aboutus_list'>\n";

	foreach ($aboutus_list as $aboutus)
	{
		$list = $list . view_aboutus($aboutus["name"],  $aboutus["detail_view_url"]);
	}
	$list = $list . "</table>\n";

	return $list;
}

function view_aboutus($name, $detail_view_url)
{
	$aboutus = sprintf(
	"<table class='aboutus_intro'>
		<tr> <td class='aboutus_name'><a href='%s'>%s</a> </td></tr>
	</table>",
		$detail_view_url, $name
	);

	return $aboutus;
}

function view_aboutus_detail($name, $details, $publish_time, $click_count)
{
	$aboutus_detail = sprintf(
		"<!--aboutus start-->
		<div class='aboutus'>
		 <div class='aboutus_details'>详细介绍:%s</div>
		</div>
		<!--aboutus end-->",
		$details
	);
	return $aboutus_detail;	
}

?>
